package com.dinner.util;

import com.dinner.model.Order;
import com.dinner.model.OrderDao;

public class CompleteOrderCommand implements Command {
	
	public CompleteOrderCommand(String consumerID, int orderID, OrderDao orderDao) {
		this.orderDao = orderDao;
		this.consumerID = consumerID;
		this.orderID = orderID;
	}
	
	@Override public void execute() {
		orderDao.completeOrder(consumerID, orderID, Order.ORDER_HANDLED,
				Order.BUSINESS_COMPLETED);
	}
	
	private OrderDao orderDao = null;
	private String consumerID = null;
	private int orderID;
	
}
